import { createSSRApp } from 'vue'
import App from './App.vue'
// 引入自己封装的js
import $U from "@/common/js/index.js"  
import $A from "@/common/js/api.js" 

import store from './store/index.js'
// 引入 tob-ui
import setupTobui from '@/uni_modules/tob-ui/index.js'
export function createApp() {
  const app = createSSRApp(App)
  // 将$U/$A助手库挂载原型
  app.config.globalProperties.$U =$U
  app.config.globalProperties.$A =$A
  app.use(store)
  setupTobui(app)
  return {
    app
  }
}
